import axios from '@/axios';

export default {
    // 获取令牌
    async axiosToken() {
        let res = await axios({
            url: "/client/get/token",
            method: "GET"
        });
        return {
            token: res[0].flag <= 0 ? "------" : res[1].token,
            tips: res[0].info,
            dutyList: res[2]
        }
    },
    // 获取学院信息
    async axiosColleges() {
        return await axios({
            method: "GET",
            url: `/client/get/colleges`
        })
    },
}